﻿namespace EFS.RC.Wallboard.Controls.Common.RSS
{
	/// <summary>
	/// Interaction logic for Item.xaml
	/// </summary>
	public partial class Item : System.Windows.Controls.UserControl
	{
		public Item()
		{
			InitializeComponent();
		}

		public System.ServiceModel.Syndication.SyndicationItem Data
		{
			set
			{
				// check
				EFS.Common.Verify.Reference(value, "value");

				// set data
				textBlockTitle.Text = value.Title.Text;
				textBlockSummary.Text = value.Summary.Text;
				textBlockPublished.Text = value.PublishDate.ToString("(dddd, MMMM dd, yyyy HH:mm)");
			}
		}
	}

}